package org.feiye.studyday11;

import java.util.Scanner;

public class TestAdmin {

	public static void main(String[] args) {
		Scanner in=new Scanner(System.in);
		Admin admin = new Admin();
		admin.adname = "admin1";
		admin.password = "111111";
		System.out.println("请输入用户名：");
		String name = in.next();
		System.out.println("请输入密码：");
		String pw = in.next();
		if (name.equals(admin.adname)&&pw.equals(admin.password)) {
			System.out.println("请输入新密码：");
			admin.password = in.next();
		} else {
			System.out.println("不匹配！");
			return;
		}
		admin.show();
	}

}
